import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/admin/index/login',
    method: 'post',
    data,
  })
}

export function getInfo() {
  return request({
    url: '/admin/index/userinfo',
    method: 'post',
  })
}

export function logout() {
  return request({
    url: '/admin/index/login',
    method: 'post',
  })
}
